extends "../buleisite-2/buleisite-2.gd"


func _extInit():
	._extInit()
	if isInManual():
		addSkill(sk2t1[1], sk2t1[0])
		addSkill(sk2t2[1], sk2t2[0])
	elif sk2 != 0:
		doChoiceSkill2()
	lv = 3             #等级的设置

var sk2t1 = ["预制弹链·1", "若当前弹药为穿甲弹，则3发穿甲弹后额外附带1发高爆弹，反之则额外附带1发穿甲弹"]
var sk2t2 = ["预制弹链·2", "每炮击3次，下一次炮击连续炮击2次"]

func doChoiceSkill2():
	var sk = get("sk2t%d"%sk2)
	addSkill(sk[1], sk[0])

var skIndex3 = 0
func _onBattleStart():
	._onBattleStart()
	skIndex3 = 0

func normalAtkChara(cha):
	.normalAtkChara(cha)
	skIndex3 += 1
	if skIndex3 >= 3:
		skIndex3 = 0
		if aiCha.isDeath:aiSeekCha(aiCha)
		if sk2 == 1:
			switchAmmoType(null)
			.normalAtkChara(aiCha)
			switchAmmoType(null)
		else:
			.normalAtkChara(aiCha)

